using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;

using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
using System.Linq;

namespace ILRuntime.Runtime.Generated
{
    unsafe class huqiang_Data_MeshData_Binding
    {
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase method;
            FieldInfo field;
            Type[] args;
            Type type = typeof(huqiang.Data.MeshData);
            args = new Type[]{typeof(System.IO.Stream)};
            method = type.GetMethod("WriteToStream", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, WriteToStream_0);
            args = new Type[]{typeof(System.String)};
            method = type.GetMethod("WriteToFile", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, WriteToFile_1);
            args = new Type[]{typeof(System.Action<huqiang.Data.MeshData, UnityEngine.GameObject>)};
            method = type.GetMethod("CreateGameObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateGameObject_2);
            args = new Type[]{};
            method = type.GetMethod("CreateNormal", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateNormal_3);
            args = new Type[]{typeof(UnityEngine.Transform), typeof(System.Action<huqiang.Data.MeshData, UnityEngine.GameObject>)};
            method = type.GetMethod("LoadFromGameObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LoadFromGameObject_4);
            args = new Type[]{typeof(UnityEngine.GameObject)};
            method = type.GetMethod("FindAssociatedMesh", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, FindAssociatedMesh_5);

            field = type.GetField("DefColor", flag);
            app.RegisterCLRFieldGetter(field, get_DefColor_0);
            app.RegisterCLRFieldSetter(field, set_DefColor_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_DefColor_0, AssignFromStack_DefColor_0);
            field = type.GetField("Zreo", flag);
            app.RegisterCLRFieldGetter(field, get_Zreo_1);
            app.RegisterCLRFieldSetter(field, set_Zreo_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_Zreo_1, AssignFromStack_Zreo_1);
            field = type.GetField("child", flag);
            app.RegisterCLRFieldGetter(field, get_child_2);
            app.RegisterCLRFieldSetter(field, set_child_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_child_2, AssignFromStack_child_2);
            field = type.GetField("subMeshCount", flag);
            app.RegisterCLRFieldGetter(field, get_subMeshCount_3);
            app.RegisterCLRFieldSetter(field, set_subMeshCount_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_subMeshCount_3, AssignFromStack_subMeshCount_3);
            field = type.GetField("name", flag);
            app.RegisterCLRFieldGetter(field, get_name_4);
            app.RegisterCLRFieldSetter(field, set_name_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_name_4, AssignFromStack_name_4);
            field = type.GetField("vertex", flag);
            app.RegisterCLRFieldGetter(field, get_vertex_5);
            app.RegisterCLRFieldSetter(field, set_vertex_5);
            app.RegisterCLRFieldBinding(field, CopyToStack_vertex_5, AssignFromStack_vertex_5);
            field = type.GetField("uv", flag);
            app.RegisterCLRFieldGetter(field, get_uv_6);
            app.RegisterCLRFieldSetter(field, set_uv_6);
            app.RegisterCLRFieldBinding(field, CopyToStack_uv_6, AssignFromStack_uv_6);
            field = type.GetField("normals", flag);
            app.RegisterCLRFieldGetter(field, get_normals_7);
            app.RegisterCLRFieldSetter(field, set_normals_7);
            app.RegisterCLRFieldBinding(field, CopyToStack_normals_7, AssignFromStack_normals_7);
            field = type.GetField("tris", flag);
            app.RegisterCLRFieldGetter(field, get_tris_8);
            app.RegisterCLRFieldSetter(field, set_tris_8);
            app.RegisterCLRFieldBinding(field, CopyToStack_tris_8, AssignFromStack_tris_8);
            field = type.GetField("subtris", flag);
            app.RegisterCLRFieldGetter(field, get_subtris_9);
            app.RegisterCLRFieldSetter(field, set_subtris_9);
            app.RegisterCLRFieldBinding(field, CopyToStack_subtris_9, AssignFromStack_subtris_9);
            field = type.GetField("coordinate", flag);
            app.RegisterCLRFieldGetter(field, get_coordinate_10);
            app.RegisterCLRFieldSetter(field, set_coordinate_10);
            app.RegisterCLRFieldBinding(field, CopyToStack_coordinate_10, AssignFromStack_coordinate_10);
            field = type.GetField("materials", flag);
            app.RegisterCLRFieldGetter(field, get_materials_11);
            app.RegisterCLRFieldSetter(field, set_materials_11);
            app.RegisterCLRFieldBinding(field, CopyToStack_materials_11, AssignFromStack_materials_11);
            field = type.GetField("AssociatedObject", flag);
            app.RegisterCLRFieldGetter(field, get_AssociatedObject_12);
            app.RegisterCLRFieldSetter(field, set_AssociatedObject_12);
            app.RegisterCLRFieldBinding(field, CopyToStack_AssociatedObject_12, AssignFromStack_AssociatedObject_12);


            app.RegisterCLRCreateDefaultInstance(type, () => new huqiang.Data.MeshData());
            app.RegisterCLRCreateArrayInstance(type, s => new huqiang.Data.MeshData[s]);

            args = new Type[]{};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
            args = new Type[]{typeof(System.Byte[])};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_1);

        }


        static StackObject* WriteToStream_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.IO.Stream @stream = (System.IO.Stream)typeof(System.IO.Stream).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.Data.MeshData instance_of_this_method = (huqiang.Data.MeshData)typeof(huqiang.Data.MeshData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.WriteToStream(@stream);

            return __ret;
        }

        static StackObject* WriteToFile_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @path = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.Data.MeshData instance_of_this_method = (huqiang.Data.MeshData)typeof(huqiang.Data.MeshData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.WriteToFile(@path);

            return __ret;
        }

        static StackObject* CreateGameObject_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Action<huqiang.Data.MeshData, UnityEngine.GameObject> @action = (System.Action<huqiang.Data.MeshData, UnityEngine.GameObject>)typeof(System.Action<huqiang.Data.MeshData, UnityEngine.GameObject>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)8);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.Data.MeshData instance_of_this_method = (huqiang.Data.MeshData)typeof(huqiang.Data.MeshData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.CreateGameObject(@action);

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* CreateNormal_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Data.MeshData instance_of_this_method = (huqiang.Data.MeshData)typeof(huqiang.Data.MeshData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.CreateNormal();

            return __ret;
        }

        static StackObject* LoadFromGameObject_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Action<huqiang.Data.MeshData, UnityEngine.GameObject> @action = (System.Action<huqiang.Data.MeshData, UnityEngine.GameObject>)typeof(System.Action<huqiang.Data.MeshData, UnityEngine.GameObject>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)8);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Transform @game = (UnityEngine.Transform)typeof(UnityEngine.Transform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = huqiang.Data.MeshData.LoadFromGameObject(@game, @action);

            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* FindAssociatedMesh_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.GameObject @game = (UnityEngine.GameObject)typeof(UnityEngine.GameObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.Data.MeshData instance_of_this_method = (huqiang.Data.MeshData)typeof(huqiang.Data.MeshData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.FindAssociatedMesh(@game);

            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


        static object get_DefColor_0(ref object o)
        {
            return huqiang.Data.MeshData.DefColor;
        }

        static StackObject* CopyToStack_DefColor_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = huqiang.Data.MeshData.DefColor;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_DefColor_0(ref object o, object v)
        {
            huqiang.Data.MeshData.DefColor = (UnityEngine.Color)v;
        }

        static StackObject* AssignFromStack_DefColor_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Color @DefColor = (UnityEngine.Color)typeof(UnityEngine.Color).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
            huqiang.Data.MeshData.DefColor = @DefColor;
            return ptr_of_this_method;
        }

        static object get_Zreo_1(ref object o)
        {
            return huqiang.Data.MeshData.Zreo;
        }

        static StackObject* CopyToStack_Zreo_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = huqiang.Data.MeshData.Zreo;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Zreo_1(ref object o, object v)
        {
            huqiang.Data.MeshData.Zreo = (System.Byte[])v;
        }

        static StackObject* AssignFromStack_Zreo_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Byte[] @Zreo = (System.Byte[])typeof(System.Byte[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            huqiang.Data.MeshData.Zreo = @Zreo;
            return ptr_of_this_method;
        }

        static object get_child_2(ref object o)
        {
            return ((huqiang.Data.MeshData)o).child;
        }

        static StackObject* CopyToStack_child_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Data.MeshData)o).child;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_child_2(ref object o, object v)
        {
            ((huqiang.Data.MeshData)o).child = (huqiang.Data.MeshData[])v;
        }

        static StackObject* AssignFromStack_child_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Data.MeshData[] @child = (huqiang.Data.MeshData[])typeof(huqiang.Data.MeshData[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.Data.MeshData)o).child = @child;
            return ptr_of_this_method;
        }

        static object get_subMeshCount_3(ref object o)
        {
            return ((huqiang.Data.MeshData)o).subMeshCount;
        }

        static StackObject* CopyToStack_subMeshCount_3(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Data.MeshData)o).subMeshCount;
            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_subMeshCount_3(ref object o, object v)
        {
            ((huqiang.Data.MeshData)o).subMeshCount = (System.Int32)v;
        }

        static StackObject* AssignFromStack_subMeshCount_3(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int32 @subMeshCount = ptr_of_this_method->Value;
            ((huqiang.Data.MeshData)o).subMeshCount = @subMeshCount;
            return ptr_of_this_method;
        }

        static object get_name_4(ref object o)
        {
            return ((huqiang.Data.MeshData)o).name;
        }

        static StackObject* CopyToStack_name_4(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Data.MeshData)o).name;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_name_4(ref object o, object v)
        {
            ((huqiang.Data.MeshData)o).name = (System.String)v;
        }

        static StackObject* AssignFromStack_name_4(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.String @name = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.Data.MeshData)o).name = @name;
            return ptr_of_this_method;
        }

        static object get_vertex_5(ref object o)
        {
            return ((huqiang.Data.MeshData)o).vertex;
        }

        static StackObject* CopyToStack_vertex_5(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Data.MeshData)o).vertex;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_vertex_5(ref object o, object v)
        {
            ((huqiang.Data.MeshData)o).vertex = (UnityEngine.Vector3[])v;
        }

        static StackObject* AssignFromStack_vertex_5(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Vector3[] @vertex = (UnityEngine.Vector3[])typeof(UnityEngine.Vector3[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.Data.MeshData)o).vertex = @vertex;
            return ptr_of_this_method;
        }

        static object get_uv_6(ref object o)
        {
            return ((huqiang.Data.MeshData)o).uv;
        }

        static StackObject* CopyToStack_uv_6(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Data.MeshData)o).uv;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_uv_6(ref object o, object v)
        {
            ((huqiang.Data.MeshData)o).uv = (UnityEngine.Vector2[])v;
        }

        static StackObject* AssignFromStack_uv_6(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Vector2[] @uv = (UnityEngine.Vector2[])typeof(UnityEngine.Vector2[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.Data.MeshData)o).uv = @uv;
            return ptr_of_this_method;
        }

        static object get_normals_7(ref object o)
        {
            return ((huqiang.Data.MeshData)o).normals;
        }

        static StackObject* CopyToStack_normals_7(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Data.MeshData)o).normals;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_normals_7(ref object o, object v)
        {
            ((huqiang.Data.MeshData)o).normals = (UnityEngine.Vector3[])v;
        }

        static StackObject* AssignFromStack_normals_7(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Vector3[] @normals = (UnityEngine.Vector3[])typeof(UnityEngine.Vector3[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.Data.MeshData)o).normals = @normals;
            return ptr_of_this_method;
        }

        static object get_tris_8(ref object o)
        {
            return ((huqiang.Data.MeshData)o).tris;
        }

        static StackObject* CopyToStack_tris_8(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Data.MeshData)o).tris;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_tris_8(ref object o, object v)
        {
            ((huqiang.Data.MeshData)o).tris = (System.Int32[])v;
        }

        static StackObject* AssignFromStack_tris_8(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int32[] @tris = (System.Int32[])typeof(System.Int32[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.Data.MeshData)o).tris = @tris;
            return ptr_of_this_method;
        }

        static object get_subtris_9(ref object o)
        {
            return ((huqiang.Data.MeshData)o).subtris;
        }

        static StackObject* CopyToStack_subtris_9(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Data.MeshData)o).subtris;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_subtris_9(ref object o, object v)
        {
            ((huqiang.Data.MeshData)o).subtris = (System.Int32[][])v;
        }

        static StackObject* AssignFromStack_subtris_9(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int32[][] @subtris = (System.Int32[][])typeof(System.Int32[][]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.Data.MeshData)o).subtris = @subtris;
            return ptr_of_this_method;
        }

        static object get_coordinate_10(ref object o)
        {
            return ((huqiang.Data.MeshData)o).coordinate;
        }

        static StackObject* CopyToStack_coordinate_10(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Data.MeshData)o).coordinate;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_coordinate_10(ref object o, object v)
        {
            ((huqiang.Data.MeshData)o).coordinate = (huqiang.Data.Coordinate)v;
        }

        static StackObject* AssignFromStack_coordinate_10(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Data.Coordinate @coordinate = (huqiang.Data.Coordinate)typeof(huqiang.Data.Coordinate).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
            ((huqiang.Data.MeshData)o).coordinate = @coordinate;
            return ptr_of_this_method;
        }

        static object get_materials_11(ref object o)
        {
            return ((huqiang.Data.MeshData)o).materials;
        }

        static StackObject* CopyToStack_materials_11(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Data.MeshData)o).materials;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_materials_11(ref object o, object v)
        {
            ((huqiang.Data.MeshData)o).materials = (System.String)v;
        }

        static StackObject* AssignFromStack_materials_11(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.String @materials = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.Data.MeshData)o).materials = @materials;
            return ptr_of_this_method;
        }

        static object get_AssociatedObject_12(ref object o)
        {
            return ((huqiang.Data.MeshData)o).AssociatedObject;
        }

        static StackObject* CopyToStack_AssociatedObject_12(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.Data.MeshData)o).AssociatedObject;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_AssociatedObject_12(ref object o, object v)
        {
            ((huqiang.Data.MeshData)o).AssociatedObject = (UnityEngine.GameObject)v;
        }

        static StackObject* AssignFromStack_AssociatedObject_12(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.GameObject @AssociatedObject = (UnityEngine.GameObject)typeof(UnityEngine.GameObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.Data.MeshData)o).AssociatedObject = @AssociatedObject;
            return ptr_of_this_method;
        }



        static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new huqiang.Data.MeshData();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* Ctor_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Byte[] @data = (System.Byte[])typeof(System.Byte[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = new huqiang.Data.MeshData(@data);

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


    }
}
